package com.zzy.mccjt.pojo.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * description:用户TOKEN 配置
 *
 * @author zzy
 * @version 1.0
 * @date 2020/4/3
 */
@Data
@Configuration
@ConfigurationProperties(prefix ="user.token")
public class TokenProperties {

    /***系统网关JWT配置*/
    private JwtProperties system;
    /***客户网关JWT配置*/
    private JwtProperties customer;


    @Data
    public static class JwtProperties {
        /***签发者*/
        private String issuer;
        /***过期时间*/
        private Integer expiration;
        /***签名私钥*/
        private String base64Security;
    }
}
